package com.htsk.city.services.wechat;

import com.alibaba.druid.spring.boot.autoconfigure.DruidDataSourceAutoConfigure;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.autoconfigure.domain.EntityScan;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.data.jpa.repository.config.EnableJpaRepositories;

@SpringBootApplication(scanBasePackages = {
        "com.htsk.city"
})
@EnableJpaRepositories(basePackages = "com.htsk.city.services.core.dao") // 激活 JPA Repository
@EntityScan(basePackages = "com.htsk.city.services.core.domain") // 扫描实体类
public class CityServicesWechatApplication {

    public static void main(String[] args) {
        SpringApplication.run(CityServicesWechatApplication.class, args);
    }

}
